package com.ysd.servlet;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.footerDao;
import com.ysd.entity.footer;


@WebServlet("/footerServlet")
public class footerServlet extends HttpServlet {
	
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		footerDao dao=new footerDao();
		ArrayList<footer> l=dao.getAllfooter();
		req.setAttribute("us", l);
		req.getRequestDispatcher("/footer.jsp").include(req, resp);
	}

}
